#include"stack.h"

void Test()
{
	st st;
	StackInit(&st);

	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);

	/*for (int i = 0; i < 5; i++)
	{
		printf("%d ", st.arr[i]);
	}*/

	while (!StackEmpty(&st))
	{
		elemtype top = Stacktop(&st);
		printf("%d ", top);
		StackPop(&st);
	}


	
}







int main()
{
	Test();



	return 0;
}